﻿using System;
using System.Collections.Generic; 
using Uranus.WeiStationAPI.Common;
using Uranus.Common;

namespace Uranus.WeiStationAPI.Models
{
    public class VisitDTO
    {
        public VisitDTO()
        {
            _serverIp = VisitCommon.GetIp();
            _serverName = VisitCommon.GetServiceName();
            UserID = string.Empty;
            CreateTime = DateTime.Now.AddHours(8);
            parms = new Dictionary<string, object>();
        }
        public string UserID { get; set; }

        public string TimeSpan { get; set; }
        //当前URL
        public string Url { get; set; }
        //客户端主机IP
        public string UserHostAddress { get; set; }

        //客户端主浏览器版本号
        public string MajorVersion { get; set; }
        //客户端使用平台名字
        public string Platform { get; set; }

        //客户端浏览器的原始用户代理信息
        public string UserAgent { get; set; }
        //客户端DNS名称
        public string UserHostName { get; set; }
        //浏览器型号
        public string Browsertype { get; set; }
        //浏览器名称
        public string BrowserName { get; set; }

        public string UrlReferrer { get; set; }

        //服务器ip
        public string _serverIp;
        //服务器名
        public string _serverName;

        public DateTime CreateTime { get; set; }

        public string Site { get; set; }

        public Dictionary<string, object> parms { get; set; }
    }
}